<!DOCTYPE html><html><head><title>channelData</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    

<h2 id="channeldata">channelData</h2>

<blockquote>
  <p>共 <code>initParam</code> <code>search</code> <code>searchChannelData</code> <code>searchChannelDetail</code> 四个接口  <br>
  实时:渠道数据</p>
</blockquote>

<hr>

<h3 id="initparam"><code>initParam</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">请求条件初始化<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs awk">http:<span class="hljs-regexp">//</span><span class="hljs-number">115.159</span>.<span class="hljs-number">207.95</span>:<span class="hljs-number">9080</span><span class="hljs-regexp">/channelDataBiAction/i</span>nitParam.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c"><span class="hljs-number">1</span>. callback : <span class="hljs-string">""</span>   <span class="hljs-meta"># 回调,可选</span><br></code></pre>

<p><strong>返回参数–正确</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c">{<br>    <span class="hljs-string">"res"</span>:<span class="hljs-string">"0"</span>,                                              <span class="hljs-meta"># 结果0正确</span><br>    <span class="hljs-string">"agent"</span>:[<span class="hljs-string">"时趣"</span>,<span class="hljs-string">"多盟"</span>,<span class="hljs-string">"掌握"</span>],                           <span class="hljs-meta"># 代理商</span><br>    <span class="hljs-string">"platform"</span>:[<span class="hljs-string">"ios"</span>,<span class="hljs-string">"安卓"</span>],                               <span class="hljs-meta"># 平台</span><br>    <span class="hljs-string">"affiliation"</span>:[<span class="hljs-string">"广告平台"</span>,<span class="hljs-string">"市场媒介"</span>],                     <span class="hljs-meta"># 归属</span><br>    <span class="hljs-string">"channelName"</span>:[<span class="hljs-string">"时趣cpi"</span>,<span class="hljs-string">"uc"</span>],                          <span class="hljs-meta"># 渠道名称</span><br>    <span class="hljs-string">"paytype"</span>:[<span class="hljs-string">"cpi"</span>,<span class="hljs-string">"cpc"</span>],                                <span class="hljs-meta">#结算方式</span><br>    <span class="hljs-string">"advPosition"</span>:[<span class="hljs-string">"时趣_04"</span>,<span class="hljs-string">"多盟_UC_9_a"</span>,<span class="hljs-string">"多盟_今日头条_19"</span>] <span class="hljs-meta">#广告位置</span><br>}<br></code></pre>

<p><strong>返回参数–错误</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c">{<br>    <span class="hljs-string">"res"</span>:<span class="hljs-string">"1"</span>,                                         <span class="hljs-meta"># 结果1错误</span><br>    <span class="hljs-string">"msg"</span>:<span class="hljs-string">"此用户无任何代理商权限，请联系管理员配置!"</span>         <span class="hljs-meta"># 错误信息</span><br>}<br></code></pre>

<hr>

<h3 id="search"><code>search</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs gcode">返回页面数据<span class="hljs-comment">(小时数据 , 实时渠道数据)</span><br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs awk">http:<span class="hljs-regexp">//</span><span class="hljs-number">115.159</span>.<span class="hljs-number">207.95</span>:<span class="hljs-number">9080</span><span class="hljs-regexp">/channelDataBiAction/</span>search.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs autoit"><span class="hljs-number">1.</span> day: <span class="hljs-string">"2017-04-01"</span>                 <span class="hljs-meta"># 日期 必填 非<span class="hljs-string">""</span></span><br><span class="hljs-number">3.</span> agent: <span class="hljs-string">"xxx,xxx"</span>                    <span class="hljs-meta"># 代理商 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">4.</span> platform: <span class="hljs-string">"xxx,xxx"</span>               <span class="hljs-meta"># 平台 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">5.</span> affiliation: <span class="hljs-string">"xxx,xxx"</span>           <span class="hljs-meta"># 归属 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">6.</span> channelName: <span class="hljs-string">"xxx,xxx"</span>     <span class="hljs-meta"># 渠道 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">7.</span> paytype: <span class="hljs-string">"xxx,xxx"</span>               <span class="hljs-meta"># 结算方式 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">8.</span> advPosition: <span class="hljs-string">"xxx,xxx"</span>         <span class="hljs-meta"># 广告位置 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">9.</span> callback: <span class="hljs-string">"xxx,xxx"</span>              <span class="hljs-meta"># 回调 可选</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs clean">    {<br>    <span class="hljs-string">"res"</span>: <span class="hljs-string">"0"</span>, # 结果<span class="hljs-number">0</span>正确<br>    <span class="hljs-string">"channelDatas"</span>: [ # 实时渠道数据<br>        {<br>            <span class="hljs-string">"channelName"</span>: <span class="hljs-string">"17173"</span>, # 渠道名称<br>            <span class="hljs-string">"agentName"</span>: <span class="hljs-string">"市场"</span>, # 代理商<br>            <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">5</span>, # 点击设备<br>            <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">3</span>, # 激活设备<br>            <span class="hljs-string">"newActive"</span>: <span class="hljs-number">3</span>, # 实际激活<br>            <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">3</span>, # 新增设备<br>            <span class="hljs-string">"accountActive"</span>: <span class="hljs-number">1</span>, # 新增/激活<br>            <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">3</span>, # 新增账号数<br>            <span class="hljs-string">"newPayAccount"</span>: <span class="hljs-number">0</span>, # 新增付费账号<br>            <span class="hljs-string">"newPay"</span>: <span class="hljs-number">0</span> # 新增付费金额<br>        },<br>        {<br>            ......<br>        }<br>    ],<br>    <span class="hljs-string">"payHourDatas"</span>: [ # 小时数据<br>        {<br>            <span class="hljs-string">"dateStr"</span>: <span class="hljs-string">"2017-06-01"</span>, # 时间<br>            <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">5291739</span>, # 点击设备<br>            <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">7414</span>, # 激活设备<br>            <span class="hljs-string">"newActive"</span>: <span class="hljs-number">6894</span>, # 实际激活<br>            <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">6675</span>, # 新增设备<br>            <span class="hljs-string">"accountActive"</span>: <span class="hljs-number">0.97</span>, # 新增/激活<br>            <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">6799</span>, # 新增账号数<br>            <span class="hljs-string">"newPayAccount"</span>: <span class="hljs-number">726</span>, # 新增付费账号<br>            <span class="hljs-string">"newPay"</span>: <span class="hljs-number">30323</span> # 新增付费金额<br>        },<br>        {<br>            ......<br>        }<br>    ]<br>}<br></code></pre>

<h3 id="searchchanneldata"><code>searchChannelData</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs gcode">返回页面数据<span class="hljs-comment">(实时渠道数据)</span><br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs awk">http:<span class="hljs-regexp">//</span><span class="hljs-number">115.159</span>.<span class="hljs-number">207.95</span>:<span class="hljs-number">9080</span><span class="hljs-regexp">/channelDataBiAction/</span>searchChannelData.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs autoit"><span class="hljs-number">1.</span> day: <span class="hljs-string">"2017-04-01"</span>                 <span class="hljs-meta"># 日期 必填 非<span class="hljs-string">""</span></span><br><span class="hljs-number">2.</span> agent: <span class="hljs-string">"xxx,xxx"</span>                    <span class="hljs-meta"># 代理商 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">3.</span> platform: <span class="hljs-string">"xxx,xxx"</span>               <span class="hljs-meta"># 平台 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">4.</span> affiliation: <span class="hljs-string">"xxx,xxx"</span>           <span class="hljs-meta"># 归属 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">5.</span> channelName: <span class="hljs-string">"xxx,xxx"</span>     <span class="hljs-meta"># 渠道 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">6.</span> paytype: <span class="hljs-string">"xxx,xxx"</span>               <span class="hljs-meta"># 结算方式 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">7.</span> advPosition: <span class="hljs-string">"xxx,xxx"</span>         <span class="hljs-meta"># 广告位置 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">8.</span> callback: <span class="hljs-string">"xxx,xxx"</span>              <span class="hljs-meta"># 回调 可选</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs clean">    {<br>    <span class="hljs-string">"res"</span>: <span class="hljs-string">"0"</span>, # 结果<span class="hljs-number">0</span>正确<br>    <span class="hljs-string">"channelDatas"</span>: [ # 实时渠道数据<br>        {<br>            <span class="hljs-string">"channelName"</span>: <span class="hljs-string">"17173"</span>, # 渠道名称<br>            <span class="hljs-string">"agentName"</span>: <span class="hljs-string">"市场"</span>, # 代理商<br>            <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">5</span>, # 点击设备<br>            <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">3</span>, # 激活设备<br>            <span class="hljs-string">"newActive"</span>: <span class="hljs-number">3</span>, # 实际激活<br>            <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">3</span>, # 新增设备<br>            <span class="hljs-string">"accountActive"</span>: <span class="hljs-number">1</span>, # 新增/激活<br>            <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">3</span>, # 新增账号数<br>            <span class="hljs-string">"newPayAccount"</span>: <span class="hljs-number">0</span>, # 新增付费账号<br>            <span class="hljs-string">"newPay"</span>: <span class="hljs-number">0</span> # 新增付费金额<br>        },<br>        {<br>            ......<br>        }<br>    ]<br>}<br></code></pre>

<h3 id="searchchanneldetail"><code>searchChannelDetail</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs gcode">返回页面数据<span class="hljs-comment">(实时渠道数据-分url以及时间的详细数据)</span><br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs awk">http:<span class="hljs-regexp">//</span><span class="hljs-number">115.159</span>.<span class="hljs-number">207.95</span>:<span class="hljs-number">9080</span><span class="hljs-regexp">/channelDataBiAction/</span>searchChannelDetail.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs applescript"><span class="hljs-number">1.</span> <span class="hljs-built_in">day</span>: <span class="hljs-string">"2017-04-01"</span>          <span class="hljs-comment"># 日期 必填 非""</span><br><span class="hljs-number">2.</span> agent: <span class="hljs-string">"xxx"</span>                   <span class="hljs-comment"># 代理商</span><br><span class="hljs-number">3.</span> channelName: <span class="hljs-string">"xxx"</span>      <span class="hljs-comment"># 渠道</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs clean">{<br>    <span class="hljs-string">"res"</span>: <span class="hljs-string">"0"</span>,<br>    <span class="hljs-string">"payMinDatas"</span>: [<br>        {<br>            <span class="hljs-string">"dateStr"</span>: <span class="hljs-string">"12:00~12:15"</span>, # 时间<br>            <span class="hljs-string">"url"</span>: <span class="hljs-string">"ZVZRRt"</span>, # 广告url<br>            <span class="hljs-string">"advName"</span>: <span class="hljs-string">"0223不删档"</span>, # 广告名称<br>            <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">1</span>, # 点击设备<br>            <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">0</span>, # 激活设备<br>            <span class="hljs-string">"newActive"</span>: <span class="hljs-number">0</span>, # 实际激活<br>            <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">0</span>, # 新增设备<br>            <span class="hljs-string">"accountActive"</span>: <span class="hljs-number">0</span>, # 新增/激活<br>            <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">0</span>, # 新增账号数<br>            <span class="hljs-string">"newPayAccount"</span>: <span class="hljs-number">0</span>, # 新增付费账号<br>            <span class="hljs-string">"newPay"</span>: <span class="hljs-number">0</span> # 新增付费金额<br>        },<br>        {<br>            ......<br>        }<br>    ]<br>}<br></code></pre></div></body></html>